import {AssetType} from './AssetType';
import {User} from './User';
import { Department } from './Department';

export class Deliver {
  id?: string;
  ids?: string;
  oaAssetType?: AssetType;
  sysUser?: User;
  sysDepartment: Department;
  deliverUser?: User;
  oldUser?: User;
  new_userid?: number;
  new_departmentid?: number;
  deliverNum?: string;
  address?: string;
  seatNum?: string;
  type?: number;
  deliverid?: number;
  remark?: string;
  old_userid?: string;
  status?: number;
  list?: any = [];
  createDate?: Date;
  updateDate?: Date;
  deliverDate?: Date;
  deliverDateShow?: any;
  // 维修
  money?: number;
  departmentid?: number;
  userid?: number;
  repairUserid?: number;
  reason?: string;
  finishDate?: Date;
  repairNum?: string;
  result?: string;
  assetids?: string;
  repairUser?: User;
  repairDate?: Date;
  repairDateShow?: any;
}

export enum  RepairStatus {
  ALL = 0,
  FINISH = 1,
  REPAIRING = 2,
  CLEAR = 3
}

export const RepairStatusMap = ['全部', '已完成', '修理中', '报废'];
